package com.eqdd.yiqidian.ui.base;

import android.os.Parcel;

import com.arlib.floatingsearchview.suggestions.model.SearchSuggestion;

/**
 * Created by lvzhihao on 17-7-3.
 */

public class TextSuggestion implements SearchSuggestion {

    String body;

    @Override
    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.body);
    }

    public TextSuggestion() {
    }

    protected TextSuggestion(Parcel in) {
        this.body = in.readString();
    }

    public static final Creator<TextSuggestion> CREATOR = new Creator<TextSuggestion>() {
        @Override
        public TextSuggestion createFromParcel(Parcel source) {
            return new TextSuggestion(source);
        }

        @Override
        public TextSuggestion[] newArray(int size) {
            return new TextSuggestion[size];
        }
    };
}